package com.gmlive.plugin.jenkins

/**
 * author: fanfeiyue
 * time: 2020/10/29
 * des:
 */
data class DingMsgModel(
        var msgtype: String = "",
        var markdown: Action? = null,
        var at: At
)

data class At(
        val atMobiles: List<String> = listOf(),
        val isAtAll: Boolean = false
)

const val ORIENTATION_HORIZONTAL = "0"
const val ORIENTATION_VERTICL = "1"

data class Action(
        val title: String,
        val text: String,
        //        val btnOrientation: String = ORIENTATION_HORIZONTAL,
        //        val btns: List<BtnActionInfo> = listOf()
)

data class BtnActionInfo(
        val title: String,
        val actionURL: String
)

data class ApkBuildInfo(
        val appName: String? = null,
        val branch: String? = null,
        val buildID: String? = null,
        val buildUrl: String? = null,
        val buildUser: String? = null,
        val apkUrl: String? = null,
        val originApkUrl: String? = null,
        val changesCommitUrl: String? = null,
        val apkMD5: String? = null,
        val apkSize: String? = null,
        val mappingUrl: String? = null,
        val apmMethodMappingUrl: String? = null,
        val obscureMappingUrl: String? = null,
        val resGuardResMappingUrl: String? = null,
        val hotfixConfigUrl: String? = null,
        val patchUrl: String? = null,
        val versionName: String? = null,
        val userReinforce: Boolean = false,
        val useBundle: Boolean = false,
        val uploadFir: Boolean = false,
        val firAddress: String? = null,
        val buildDesc: String? = null,
        val aabUrl: String? = null,
        val extractApks: String? = null,
        val channel: String?= null
)
